package faq.biz.impl;

import java.util.List;

import faq.biz.FaqsBiz;
import faq.dao.FaqsDao;
import faq.entity.Faqs;

public class FaqsBizImpl implements FaqsBiz {
	
	FaqsDao faqsDao =null;
	
	
	public FaqsDao getFaqsDao() {
		return faqsDao;
	}

	
	
	public FaqsBizImpl() {
	}



	public void setFaqsDao(FaqsDao faqsDao) {
		this.faqsDao = faqsDao;
	}

	public List<Faqs> getFaqsByTitle(String title) {
		
		return faqsDao.getFaqsByTitle(title);
	}

	public boolean addFaqs(Faqs faqs) {
		boolean bool=true;
		try {
			faqsDao.addFaqs(faqs);
		} catch (Exception e) {
			bool=false;
		}
		return bool;
	}

	public Faqs getFaqsById(int id) {
		
		return faqsDao.getFaqsById(id);
	}

}
